package cn.bdqn.web;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.xml.stream.events.NotationDeclaration;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class UserController {
@RequestMapping("/getnow")

	public String getnow(){
			Date date=new Date();
			SimpleDateFormat sf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
			String format =sf.format(date);
			return format;
	}
}
